package com.psool.service;

import act.controller.annotation.UrlContext;
import act.inject.DefaultValue;
import act.util.JsonView;
import org.joda.time.DateTime;
import org.osgl.mvc.annotation.GetAction;
import org.osgl.mvc.annotation.PostAction;

/**
 * @Description:
 * @Author: 李钟奇
 * @Date: 2021/9/30 14:31
 */
@UrlContext("v")
public class Service {

    @GetAction("hello")
    public String hello(@DefaultValue("World") String who) {
        return "Hello " + who;
    }

    @PostAction("pod")
    public String getPod(@DefaultValue("World") String who) {
        return "Hello " + who;
    }

}
